package edu.sctu.practice.class01.zhoumengxue.test.test03;

/**
 * Created by ASUS on 2015/10/9.
 */
public class Main {

    public static void main(String[] args) {

        MyTime myTime = new MyTime(3, 25, 12);
        myTime.display();
        System.out.println("小时的加运算为：" + myTime.addHour());
        System.out.println("分钟的加运算为：" + myTime.addMinute());
        System.out.println("秒钟的加运算为：" + myTime.addSecond());
        System.out.println("小时的减运算为：" + myTime.subHour());
        System.out.println("秒钟的减运算为：" + myTime.subSecond());
        System.out.println("分钟的减运算为：" + myTime.subMinute());

    }
}
